'use strict';

module.exports = app => {
  return class RenderController extends app.Controller {
    async home() {
      const { ctx ,service } = this;
      const { session } = ctx;
      // const userAuth = await service.auth.getUserAuth(session.uid);
      // console.log(userAuth);
      await ctx.render('index');
    }
    async login() {
      const { ctx } = this;
      await ctx.render('login');
    }
  };
};
